function C57_CPP_Plot_Mean_XDay_PV_Matrix(XDay_PV_Matrix)
%% prepare data

matrix = cat(3, XDay_PV_Matrix.C57_5, XDay_PV_Matrix.C57_6, XDay_PV_Matrix.C57_7, XDay_PV_Matrix.C57_8);

for n = 1:size(matrix,1)
    for m = 1:size(matrix,2)
        XDay_PV(n,m) = mean(matrix(n,m,:));
    end
end

%% plotting

figure
heatmap(XDay_PV,'CellLabelColor','none'); 
colormap jet; 
Ax = gca;
Ax.XDisplayLabels = nan(size(Ax.XDisplayData));
Ax.YDisplayLabels = nan(size(Ax.YDisplayData));
caxis([0, 0.5]);
title('Cross-Day PVcorr Matrix')
set(gca,'FontSize',20);

end